
package com.epam.edu.task03.dances;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.math.BigInteger;


/**
 * <p>Java class for Dancer complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType name="Dancer">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="numberOfYears" type="{http://www.w3.org/2001/XMLSchema}integer"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Dancer", namespace = "Dance", propOrder = {
        "dancerName",
        "numberOfYears"
})
public class Dancer {

    @XmlElement(namespace = "Dance", required = true)
    protected String dancerName;
    @XmlElement(namespace = "Dance", required = true)
    protected int numberOfYears;

    /**
     * Gets the value of the name property.
     *
     * @return possible object is
     *         {@link String }
     */
    public String getDancerName() {
        return dancerName;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setDancerName(String value) {
        this.dancerName = value;
    }

    /**
     * Gets the value of the numberOfYears property.
     *
     * @return possible object is
     *         {@link BigInteger }
     */
    public int getNumberOfYears() {
        return numberOfYears;
    }

    /**
     * Sets the value of the numberOfYears property.
     *
     * @param value allowed object is
     *              {@link BigInteger }
     */
    public void setNumberOfYears(int value) {
        this.numberOfYears = value;
    }

    @Override
    public String toString() {
        return "Dancer{" +
                "dancerName='" + dancerName + '\'' +
                ", numberOfYears=" + numberOfYears +
                '}';
    }

}
